<script setup lang="ts">
import {inject} from "vue";
const suibian:any = inject("suibian");
const fn = function(){
    suibian.value-=10
}
</script>

<template>
    <h3>One</h3>
    <button @click="suibian-=10">{{suibian}}</button>
    <button @click="fn">{{suibian}}</button>
    <button>{{inject("age")}}</button>
</template>

<style scoped>

</style>